package cn.mesmile.design.composite;

/**
 * @author zb
 * @date 2020/11/16 23:34
 * @Description:
 */
public abstract class Root {

    private String name;

    public Root(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public abstract void add(Root root);


    public abstract void removeFile(Root root);


    public abstract void display(int depth);
}
